import gpiozero as gz
import time

s=gz.Servo(2,min_pulse_width=0.5/1000,max_pulse_width=2.5/1000,frame_width=20.0/1000)

s.min()
time.sleep(1)
#s.mid()
#time.sleep(0.5)
s.max()
time.sleep(1)

#while True:
    #s.min()
    #time.sleep(1)
    #s.mid()
    #time.sleep(0.5)
    #s.max()
    #time.sleep(1)


